<?php

namespace App\Entities;

class DistributorStatEntity extends ABaseEntity
{
    public function __construct(DistributorStatModel $model)
    {
        $this->model = $model;
    }

    /**
     * @return int
     */
    public function getId()
    {
        return (int)$this->model->id;
    }

    /**
     * @param int $orderId
     */
    public function setOrderId(int $orderId)
    {
        $this->model->order_id = $orderId;
    }

    /**
     * @return int
     */
    public function getOrderId()
    {
        return $this->model->order_id;
    }

    /**
     * @param int $distributor_id
     */
    public function setDistributorId(int $distributor_id): void
    {
        $this->model->distributor_id = $distributor_id;
    }

    /**
     * @return int
     */
    public function getDistributorId(): int
    {
        return $this->model->distributor_id;
    }

    /**
     * @param string $profit
     */
    public function setProfit(string $profit): void
    {
        $this->model->profit = $profit;
    }

    /**
     * @return string
     */
    public function getProfit(): string
    {
        return $this->model->profit;
    }

    /**
     * @param int $order_time
     */
    public function setOrderTime(int $order_time): void
    {
        $this->model->order_time = $order_time;
    }

    /**
     * @return int
     */
    public function getOrderTime(): int
    {
        return $this->model->order_time;
    }

    /**
     * @param int $status
     */
    public function setStatus(int $status): void
    {
        $this->model->status = $status;
    }

    /**
     * @return int
     */
    public function getStatus(): int
    {
        return $this->model->status;
    }
}
